package top.jfunc.common.db.data;

import java.sql.ResultSet;

/**
 * 装饰器
 *
 * @author <a href="https://github.com/TAKETODAY">Harry Yang</a>
 * @since 1.0 2022/11/25 10:16
 */
public class RowCallbackHandlerDecorator implements RowCallbackHandler {

  protected final RowCallbackHandler delegate;

  public RowCallbackHandlerDecorator(RowCallbackHandler delegate) {
    this.delegate = delegate;
  }

  @Override
  public void processRow(ResultSet rs, int rowNumber) throws Exception {
    delegate.processRow(rs, rowNumber);
  }

  @Override
  public void finishedReading(int rows) throws Exception {
    delegate.finishedReading(rows);
  }

}
